<style>
    .ie-bs{
    padding:3px 5px;
    border:1px solid #a0a0a0;
    color:#333;
    margin-right:2px;
    border-radius:5px;
    display: inline-block;
    margin-bottom:7px;
    position:relative;
    cursor:pointer;
    }
    .ie-xiaoguo{
        border:1px solid #f29603;
        color:#f29603;
        background:url('__PUBLIC__assets/img/ie-xiaoguo.png') no-repeat right bottom;
        background-size:16px;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-resume_id" class="control-label col-xs-12 col-sm-2">用户ID</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-resume_id"  class="form-control " name="resume_id" type="text" value="{$row.user_id}"  readonly="readonly">

        </div>
    </div>
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">用户姓名</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control " name="name" type="text" value="{$row.name}">

        </div>
    </div>
    <div class="form-group">
        <label for="c-tel" class="control-label col-xs-12 col-sm-2">手机号码</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tel" class="form-control " name="tel" type="text" value="{$row.tel}">

        </div>
    </div>
    <div class="form-group">
        <label for="c-job_type" class="control-label col-xs-12 col-sm-2">工作状态</label>
        <div class="col-xs-12 col-sm-8">
            <select name="job_type" id="c-job_type" class="form-control ">
                <option value="兼职" {if condition="$row.job_type eq '兼职'"}selected{/if}>兼职</option>
                <option value="全职" {if condition="$row.job_type eq '全职'"}selected{/if}>全职</option>

                <option value="小时工" {if condition="$row.job_type eq '小时工'"}selected{/if}>小时工</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-target_work" class="control-label col-xs-12 col-sm-2">求职工种</label>

        <div class="col-xs-12 col-sm-8">
            {volist name="option" id="o" key="k"}

            <span  {if condition="$in=strstr($row.target_work,$o.list_name)"} class="ie-bs ie-xiaoguo"{else/} class="ie-bs" {/if} onclick="tests({$k})">
                <input name="target_work[]" type="checkbox" value="{$o.list_name}"  hidden
                       {if condition="$in=strstr($row.target_work,$o.list_name)"} checked="true" {/if}>
                {$o.list_name}
            </span>
            {/volist}
                    <!--<input type="text" class="ie-input" placeholder="{{item.option_holder}}" [(ngModel)]="this.infoTextData[item.letter]" (blur)="textData(item)">-->
        </div>
    </div>
    <div class="form-group">
        <label for="c-working_age" class="control-label col-xs-12 col-sm-2">工龄</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-working_age" class="form-control " name="working_age" type="text" value="{$row.working_age}">

        </div>
    </div>
    <div class="form-group">
        <label for="c-cuisine" class="control-label col-xs-12 col-sm-2">地址</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cuisine" class="form-control " name="cuisine" type="text" value="{$row.cuisine}">

        </div>
    </div>
    <div class="form-group">
        <label for="c-remuneration" class="control-label col-xs-12 col-sm-2">期望薪酬</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remuneration" class="form-control " name="remuneration" type="text" value="{$row.remuneration}">

        </div>
    </div>
    <div class="form-group">
        <label for="c-commit" class="control-label col-xs-12 col-sm-2">自我评价</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-commit" class="form-control " name="commit">{$row.commit}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-start_time" class="control-label col-xs-12 col-sm-2">开始日期</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" type="datetime" class="form-control datetimepicker" name="start_time" placeholder="开始日期" value="{$row.start_time}"  data-index="4" data-date-format="YYYY-MM-DD">


        </div>
    </div>
    <div class="form-group">
        <label for="c-end_time" class="control-label col-xs-12 col-sm-2">结束日期</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" type="datetime" class="form-control datetimepicker" name="end_time"  placeholder="结束日期" value="{$row.end_time}"  data-index="4" data-date-format="YYYY-MM-DD">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script src="__PUBLIC__assets/js/jquery-1.11.3.min.js"></script>
<script>
    function tests(k){
        if($(".ie-bs").eq(k-1).hasClass("ie-xiaoguo")){
            $(".ie-bs").eq(k-1).removeClass('ie-xiaoguo');
            $(".ie-bs").eq(k-1).children('input').attr('checked',false);
        }else{

            $(".ie-bs").eq(k-1).addClass('ie-xiaoguo');
            $(".ie-bs").eq(k-1).children('input').attr('checked','checked');
        }
    }



</script>